<!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu" id="nav-accordion">
                  <li class="sub-menu">
                      <a <?php if($_SESSION['sidebar'] == "news"):?>class="active"<?php endif;?> href="#" >
                          <i class="fa fa-desktop"></i>
                          <span>咨询管理</span>
                      </a>
                      <ul class="sub">
                          <li>
                            <a <?php if($_SESSION['sidebar'] == "news"):?>style="color:#fff"<?php endif;?> href="<?=BASEURL?>news/index" >新闻管理</a>
                          </li>
                      </ul>
                  </li>

                  <li class="sub-menu">
                      <a  <?php if(in_array($_SESSION['sidebar'],['document','video'])):?>class="active"<?php endif;?> href="javascript:;" >
                          <i class="fa  fa-trello"></i>
                          <span>在线学习</span>
                      </a>
                      <ul class="sub">
                          <li>
                            <a <?php if($_SESSION['sidebar'] == "document"):?>style="color:#fff"<?php endif;?>  href="<?=BASEURL?>document/index">文档资料</a>
                           </li>
                          <li>
                            <a <?php if($_SESSION['sidebar'] == "video"):?>style="color:#fff"<?php endif;?>  href="<?=BASEURL?>video/index">视频资料</a>
                          </li>
                      </ul>
                  </li>
                  <li class="sub-menu">
                      <a  <?php if(in_array($_SESSION['sidebar'],['exercises','examination'])):?>class="active"<?php endif;?> href="javascript:;" >
                          <i class="fa fa-book"></i>
                          <span>在线测评</span>
                      </a>
                      <ul class="sub">
                          <li><a <?php if($_SESSION['sidebar'] == "exercises"):?>style="color:#fff"<?php endif;?>  href="<?=BASEURL?>exercises/index">在线练习</a></li>
                          <li><a <?php if($_SESSION['sidebar'] == "examination"):?>style="color:#fff"<?php endif;?>  href="<?=BASEURL?>examination/index">在线考试</a></li>
                      </ul>
                  </li>
                  <li class="sub-menu">
                      <a <?php if($_SESSION['sidebar'] == "email"):?>class="active"<?php endif;?> href="<?=BASEURL?>email/index" >
                          <i class="fa fa-envelope-o"></i>
                          <span>消息管理</span>
                      </a>
                  </li>
                  <li class="sub-menu">
                      <a <?php if(in_array($_SESSION['sidebar'],['myexercises','myexamination','account','history','myrecord'])):?>class="active"<?php endif;?> href="javascript:;" >
                          <i class=" fa  fa-user"></i>
                          <span>个人中心</span>
                      </a>
                      <ul class="sub">
                          <li>
                            <a <?php if($_SESSION['sidebar'] == "account"):?>style="color:#fff;"<?php endif;?>  href="<?=BASEURL?>user/account">个人信息管理</a>
                          </li>
                          <li><a  <?php if($_SESSION['sidebar'] == "myexamination"):?>style="color:#fff;"<?php endif;?>  href="<?=BASEURL?>examination/myscore">我的考试</a></li>
                          <li><a  <?php if($_SESSION['sidebar'] == "myexercises"):?>style="color:#fff;"<?php endif;?>  href="<?=BASEURL?>exercises/mywrong">我的错题</a></li>
                          <li><a <?php if($_SESSION['sidebar'] == "myrecord"):?>style="color:#fff;"<?php endif;?>   href="<?=BASEURL?>video/myrecord">我的学习记录</a></li>
                      </ul>
                  </li>

              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->